home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15616 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: list of functions in a lib<>.a file
  5. Date: 19 Apr 1996 18:42:05 -0700
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4l9fddINN8u3@keats.ugrad.cs.ubc.ca>
  8. References: <4l60fc$9am@ornews.intel.com> <smryanDq3M2y.5M8@netcom.com> <4l8o4j$kj@news.interpath.net>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <4l8o4j$kj@news.interpath.net>,
  12. Scott McMahan - Softbase Systems <softbase@mercury.interpath.com> wrote:
  13.  >@#$%!?! (smryan@netcom.com) wrote:
  14.  >: : Is there a way that I can get a list of functions in a .a
  15.  >: : library file?
  16.  >
  17.  >: nm if your system has it.
  18.  >
  19.  >Don't you mean ar? nm lists the symbols in a .o file, but I don't
  20.  >think I've ever run it on an archive before. ar would be more
  21.  >user friendly anyhow.
  22.  
  23. It works. These archives are blessed with special capabilities (such as the
  24. symbol table that is added with ranlib, or ar s ).
  25.  
  26. nm also works on executable files that have not been stripped.
  27.  
  28. BTW, the proper place is in some system-specific newsgroup. The C language
  29. doesn't designate an object format, or a set of tools for manipulating it. It
  30. could be argued that those things in the object file are no longer C functions,
  31. even. They are object code tagged with symbols that have lost most of their
  32. original C semantics.
  33.